package com.yuanduo_app.ui.rn;

import android.os.Bundle;

import com.yuanduo_app.base.BaseRNFragment;
import com.xujl.fastlib.base.BaseView;
import com.xujl.fastlib.base.IControl;
import com.xujl.fastlib.base.LayoutBuilder;

/**
 * <pre>
 *     author : xujl
 *     e-mail : 597355068@qq.com
 *     time   : 2019/08/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class RnOilFragmentControl extends BaseRNFragment {
    public static RnOilFragmentControl newInstance () {
        Bundle args = new Bundle();
        RnOilFragmentControl fragment = new RnOilFragmentControl();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void init (Bundle savedInstanceState) {

    }

    @Override
    protected BaseView createDefaultView () {
        return new BaseView() {
            @Override
            public void init (IControl control) {

            }

            @Override
            public LayoutBuilder configLayout () {
                return super.configLayout().setEnableDataBinding(false)
                        .setEnableAutoSetLayout(false);
            }
        };
    }

    @Override
    public boolean enableFragmentBack () {
        return false;
    }

    @Override
    public boolean enableRN () {
        return true;
    }

    @Override
    public String getCompontentName () {
        return "oilFragment";
    }
}
